<?php
namespace app\controller;

use think\facade\Cookie;
use think\facade\Log;
use think\facade\Request;
use think\facade\Session;

class Store
{
    public function session(){
        Session::set('user','Mr.Xu');
        Session::set('count','10');
        //return Session::get('use');
        //dump(Session::all());
        dump(Request::session());
    }

    public function cookie(){
        //Cookie::set('user','Mr.Xu');
        //Cookie::set('user','Mr.Xu',3600);
        dump(Cookie::get('user'));
    }

    public function log(){
        //Log::record('测试日志！');
        Log::record('测试日志！', 'error');
    }
}